function WlLoanVOJs(){
   this.id
   ; this.task
   ; this.returnBooker
   ; this.borrower
   ; this.returner
   ; this.agent
   ; this.applyTime
   ; this.planPayTime
   ; this.planLoanFee
   ; this.factLoanTime
   ; this.factLoanFee
   ; this.returnTime
   ; this.remark

}

function WlLoanVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        t=ulo["ns:planLoanFee"];if(t!=null&&t!=undefined){items[2] =  t['ns:upNumber'];}
                        t=ulo["ns:factLoanFee"];if(t!=null&&t!=undefined){items[3] =  t['ns:upNumber'];}
                        items[4] = ulo["ns:remark"];//
                       t=ulo["ns:applyTime"];if(t!=null&&t!=undefined){items[5] = t['ns:upDate'];}
                        t=ulo["ns:planPayTime"];if(t!=null&&t!=undefined){items[6] = t['ns:upDate'];}
                        t=ulo["ns:factLoanTime"];if(t!=null&&t!=undefined){items[7] = t['ns:upDate'];}
                        t=ulo["ns:returnTime"];if(t!=null&&t!=undefined){items[8] = t['ns:upDate'];}
                         items[9] = PeopleVOtoArray_fun(ulo["ns:borrower"],edit);
                         items[10] = PeopleVOtoArray_fun(ulo["ns:returnBooker"],edit);
                         items[11] = PeopleVOtoArray_fun(ulo["ns:returner"],edit);
                         items[12] = PeopleVOtoArray_fun(ulo["ns:agent"],edit);
                         items[13] = WlTaskVOtoArray_fun(ulo["ns:task"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        t=ulo["ns:planLoanFee"];if(t!=null&&t!=undefined){items[2] =  t['ns:upNumber'];}
                        t=ulo["ns:factLoanFee"];if(t!=null&&t!=undefined){items[3] =  t['ns:upNumber'];}
                        items[4] = ulo["ns:remark"];//
                        t=ulo["ns:applyTime"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[5] = d;
                        items[6] = d;                        
                        t=ulo["ns:planPayTime"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[7] = d;
                        items[8] = d;                        
                        t=ulo["ns:factLoanTime"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[9] = d;
                        items[10] = d;                        
                        t=ulo["ns:returnTime"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[11] = d;
                        items[12] = d;                        
                         items[13] = PeopleVOtoArray_fun(ulo["ns:borrower"],edit);
                         items[14] = PeopleVOtoArray_fun(ulo["ns:returnBooker"],edit);
                         items[15] = PeopleVOtoArray_fun(ulo["ns:returner"],edit);
                         items[16] = PeopleVOtoArray_fun(ulo["ns:agent"],edit);
                         items[17] = WlTaskVOtoArray_fun(ulo["ns:task"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }//!=null                     
            return querydata;
}
 